package com.blacktea.structuralpatterns.bridgepattern.service;

import com.blacktea.structuralpatterns.bridgepattern.client.Client;

/**
 * @description: 消息的接口
 * @author: black tea
 * @date: 2023/3/22 15:24
 */
public abstract class MessageService {

    /**
     * 发送消息
     * @param message 消息内容
     */
    public abstract void sendMessage(String message);

    /**
     * 接收消息
     * @param message 消息内容
     */
    public abstract void receiveMessage(String message);

    /**
     * 客户端
     */
    protected Client client;

    public MessageService(Client client) {
        this.client = client;
    }
}
